package bean;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue("CC")
public class CuentaCorriente extends Cuenta {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static final double GASTO = 0.05;

	public double gasto() {
		return (saldo < 0 ? saldo*GASTO : 0);
	}
	
	public void debitarGastos(){
		saldo += gasto();
	}
}
